package br.com.netomarin.bundesliga.persistence;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

import com.google.appengine.api.datastore.Key;

@PersistenceCapable 
public class Match {

	public static final String MATCH_TYPE_CHAMPIONSHIP = "champ";
	public static final String MATCH_TYPE_LEAGUE = "league";
	
	@PrimaryKey
    @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
    private Key key;
	@Persistent
	private String homeTeam;
	@Persistent
	private String homeP1;
	@Persistent
	private String homeP2;
	@Persistent
	private byte scoreHomeTeam;
	@Persistent
	private String visitorTeam;
	@Persistent
	private String visitorP1;
	@Persistent
	private String visitorP2;
	@Persistent
	private byte scoreVisitorTeam;
	@Persistent
	private boolean confirmed;
	@Persistent
	private String matchType;
	@Persistent
	private String notifier;
	@Persistent
	private String challengedMatch;
	@Persistent
	private boolean escalated;
	
	public Key getKey() {
		return key;
	}

	public void setKey(Key key) {
		this.key = key;
	}

	public String getHomeTeam() {
		return homeTeam;
	}
	
	public void setHomeTeam(String homeTeam) {
		this.homeTeam = homeTeam;
	}
	
	public String getHomeP1() {
		return homeP1;
	}
	
	public void setHomeP1(String homeP1) {
		this.homeP1 = homeP1;
	}
	
	public String getHomeP2() {
		return homeP2;
	}
	
	public void setHomeP2(String homeP2) {
		this.homeP2 = homeP2;
	}
	
	public byte getScoreHomeTeam() {
		return scoreHomeTeam;
	}
	
	public void setScoreHomeTeam(byte scoreHomeTeam) {
		this.scoreHomeTeam = scoreHomeTeam;
	}
	
	public String getVisitorTeam() {
		return visitorTeam;
	}
	
	public void setVisitorTeam(String visitorTeam) {
		this.visitorTeam = visitorTeam;
	}
	
	public String getVisitorP1() {
		return visitorP1;
	}
	
	public void setVisitorP1(String visitorP1) {
		this.visitorP1 = visitorP1;
	}
	
	public String getVisitorP2() {
		return visitorP2;
	}
	
	public void setVisitorP2(String visitorP2) {
		this.visitorP2 = visitorP2;
	}
	
	public byte getScoreVisitorTeam() {
		return scoreVisitorTeam;
	}
	
	public void setScoreVisitorTeam(byte scoreVisitorTeam) {
		this.scoreVisitorTeam = scoreVisitorTeam;
	}

	public boolean isConfirmed() {
		return confirmed;
	}

	public void setConfirmed(boolean confirmed) {
		this.confirmed = confirmed;
	}

	public String getMatchType() {
		return matchType;
	}

	public void setMatchType(String matchType) {
		this.matchType = matchType;
	}

	public String getNotifier() {
		return notifier;
	}

	public void setNotifier(String notifier) {
		this.notifier = notifier;
	}

	public String getChallengedMatch() {
		return challengedMatch;
	}

	public void setChallengedMatch(String challengedMatch) {
		this.challengedMatch = challengedMatch;
	}

	public boolean isEscalated() {
		return escalated;
	}

	public void setEscalated(boolean escalated) {
		this.escalated = escalated;
	}
}